﻿using SqlSugar;

namespace Sunlight.Manage.Model.Entity
{
    /// <summary>
    /// 用户信息
    /// </summary>
    [SugarTable("Sys_User")]
    public class Sys_User
    {

        [SugarColumn(ColumnName = "UserId",IsIdentity =true,IsPrimaryKey =true)]
        public int UserId { get; set; }

        [SugarColumn(ColumnDataType = "nvarchar",Length =255)]
        public string? Name { get; set; }

        [SugarColumn(ColumnDataType = "nvarchar", Length = 255)]
        public string? Password { get; set; }

        [SugarColumn(ColumnDataType = "nvarchar", Length = 255,IsNullable =true)]
        public string? Phone { set; get; }

        [SugarColumn(ColumnDataType = "nvarchar", Length = 255, IsNullable = true)]
        public string? Mobile { set; get; }

        [SugarColumn(ColumnDataType = "nvarchar", Length = 255, IsNullable = true)]
        public string? Address { set; get; }

        [SugarColumn(ColumnDataType = "nvarchar", Length = 255, IsNullable = true)]
        public string? Email { set; get; }

        [SugarColumn(IsNullable =true)]
        public long QQ { set; get; }

        [SugarColumn(ColumnDataType = "nvarchar", Length = 255, IsNullable = true)]
        public string? WeChat { set; get; }

        [SugarColumn(IsNullable =true)]
        public int Sex { set; get; }

        /// <summary>
        /// 用户状态： 0正常 1冻结 2删除
        /// </summary>
        public int Status { set; get; }

        public DateTime LastLoginTime { set; get; }

    }
}
